<?php defined('SYSPATH') or die('No direct script access.');

class Model_Dao_Average extends ORM{

	protected $_table_name  = 'averages_view'; // default: accounts
    protected $_primary_key = 'id';      // default: id
    protected $_primary_val = 'sex';      // default: name (column used as primary value)
	    
	    
    // default for $_table_columns: use db introspection to find columns and info
    // see http://v3.kohanaphp.com/guide/api/Database_MySQL#list_columns for all possible column attributes
    protected $_table_columns =  array( 'decade' => array('data_type' => 'int', 'is_nullable' => FALSE),
	'sex'=> array('data_type' => 'string', 'is_nullable' => FALSE),
	'samples'=> array('data_type' => 'int', 'is_nullable' => FALSE),
	'aod_avg'=> array('data_type' => 'float', 'is_nullable' => FALSE),
	'aod_trust_interval'=> array('data_type' => 'float', 'is_nullable' => FALSE),
	'aos_avg'=> array('data_type' => 'float', 'is_nullable' => FALSE),
	'aos_trust_interval'=> array('data_type' => 'float', 'is_nullable' => FALSE),
	'iar_avg'=> array('data_type' => 'float', 'is_nullable' => FALSE),
	'iar_trust_interval'=> array('data_type' => 'float', 'is_nullable' => FALSE),
	);
}
?>
